<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>Popup Layout Example</title>
		<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js "></script>
		
		<script type="text/javascript">
			function show_popup(action, userid){
				$('#popup').css('opacity',0.50).fadeIn('fast', 
					function (){
						$('#window').slideDown();}
					);				
			}
			
			function close_popup(){
				$('#popup').fadeOut('fast');
				$('#window').fadeOut('fast');
			}			
		</script>
		
		<style type="text/css">
			#popup {
				height: 100%;
				width: 100%;
				background: #000000;
				position: absolute;
				top: 0;
				left: 0;
				filter: alpha(opacity=50);
				-moz-opacity:0.50;
				-khtml-opacity: 0.50;
				opacity: 0.50;
			}
			
			#window {
				width: 600px;
				height: 300px;
				margin: 0 auto;
				border: 1px solid #000000;
				background: #ffffff;
				position: absolute;
				top: 200px;
				left: 25%;				
			}
		</style>
		
	</head>
	<body>
		
		<a href="#" onclick="show_popup()">Open Popup Window</a>
		
		<div id="popup" style="display: none;"></div>
		<div id="window" style="display: none;">
			<div id="popup_content"><a href="#" onclick="close_popup();">Close</a></div>
		</div>
	</body>
</html>
